package Impl;

import entity.Message;

import java.util.List;

public interface MessageDao {
    void delete (int mid);
    void add(Message message);
    List<Message> findMessageByrecipient(String recipient);
    List<Message> findMessageBysender(String sender);
    Message findMessageById(int mid,String recipient);
}
